A Small Tool for Encoding Text