def METHOD_NAME(self, data):
    match = self.NON_PRINTABLE.search(data)
    if match:
        character = match.group()
        position = self.index+(len(self.buffer)-self.pointer)+match.start()
        raise ReaderError(self.name, position, ord(character),
                'unicode', "special characters are not allowed")