Fix spurious error message due to encoding bug in error handler. See #1311025 (Error when editing author metadata the first time)
Allow using .py config files in both PyQT4 and PyQt5