fix for reading unicode chars from file