use  instead of  for writing to textfiles, resolves #88