[Fix #1289] Use utf-8 as default encoding for inspected files

For all Ruby versions.