Updated API to throw const char* for all detected corrupt input data while decoding. Also updated and added tests to reflect this.