py2: same changes as for py3 (#927ad729e4)
UTF-8 encoding isn't specified when converting to string.