Leniently handle non-well-formed data and faithfully reproduce it on output