Fixed copy-pasted "almost error" in test checkers
Fixed crash when there are non-ascii characters in os.environment.

We should not try to convert these values. They are just passed through.