Encoding plain text data to reduce file size