Fixes url in emails