Encoding HTML entities

Added htmlentities, some emails were messed up without it