Add UTF-8 encoding to stop the invalid multibyte error