It can be a good idea to use [Poco:URI](https://pocoproject.org/docs/Poco.URI.html) (instead of building the URI from scratch) as mentioned in PR https://github.com/ros-industrial/abb_librws/pull/46#discussion_r263396314