Makes hostnames RFC compatible

Fixes test-kitchen/kitchen-digitalocean#12
Merge pull request #15 from Zhann/bug/instance_hostname

Makes hostnames RFC compatible