changed file read write in TextData to use "UTF-8" charset instead of
the platform default