remove explicit utf-8 encoding because decode() defaults to current default string encoding
fix relative import and use bytes
in python 3.3, calling logging.exception() when an exception hasn't been raised throws an AttributeError
this exact scenario occurs during testing when we attempt to Mock() an exception and pass it directly to handle_error
correct expected order of the keys in marshalled output