WFLY-261 - add proper parsing of URLs