Clean up the trailing dot in case of DNS request