testing encoding for text