Update request.py

Update with error handling : A message is printed when non printable characters are found.