do not start encoding in the middle of a string