Added spec for Hostname#to_s (closes #20).