parser#decodePayload
This addresses the situation where malformed data is supplied to the parser. Fixes #510