Cast fqdn as string for gsub
Merge pull request #1383 from Aethylred/fix/master/string_miscast_settings.rb

Cast fqdn as string for gsub