fix bugs in slicename_to_hrn and hostname_to_hrn