cleaned up code output from EmailEncoder.encode