fix issue where URLs in emails didn't work