Added proper default for request object/class pair to deal with unknown request encodings