Fixes JSON error parsing error when receiving bytes in Python 3.