better example for text encoding