fixed encoding bug with CNAME