closes #151 Fixed issue with unicode chars to file