Fixing utf-8 file reading for server