Fix bug in OSX, UTF8 error when saves a temp file for a linter.