Merge pull request #242 from pre-commit/fix_trailing_whitespace_non_utf8_osx Fix trailing-whitespace on macos for non-utf8 files