IO.write assumes unicode. erlang file.write doesn't