Add "last resort" exception handling for cases where we can't decode into a buffer and failed to detect it.