Add support for unsafe input for Decode