ignore trailing garbage on end of enciphered json messages