Updated Rails webserver to encode DOTS correctly in emails