Catch encode/decode exceptions and show hints