Add pylint checker for file encoding

Discussed in #7294.
Recognize UTF-8 BOM and some other cases
Merge pull request #7316 from holmboe/pylint-file-encoding

Add pylint checker for file encoding