Add pylint checker for file encoding

Discussed in #7294.