file reading: encoding errors='replace'