Simplify, use `file` to determine `input_encoding`
Change file encoding to utf-8