handle ASCII encoding on file open