Bug 879225: NetworkManager - extract hostname from various formats. r=gene