Adjust string encode