change ssh hostname delimiter to []'s