Emulate File.stream! for a string variable

Issue is already known to the elixir team

also there is an PR addressing this issue