Corrected string to only encode non utf-8 strings (#56)