First attempt at email encoding
Cleaned up HAML