created sloppy-check to sloppily check incoming data for correct encoding