either replace as wavic suggests, or use proper codec
You can use: https://github.com/chardet/chardet
to detect (most of the time) the proper file codec
You can use: https://github.com/chardet/chardet
to detect (most of the time) the proper file codec