Fix string/bytes conversion error.