Added a new function for converting a hostname to an Erlang host tuple.