Attempt fixing the character encoding for both versions of Python