this method should, as much as possible, re-use the existing decoding methods, such as:

https://github.com/bitly/pynsq/blob/master/nsq/nsq.py#L41-L43