Edit text, fix encoding in frame