UnicodeEncodeError in PATCH request

Fix trouble with unicode string in PATCH request