Correctly handle decoding message bodies.

  This updates #148.