rosgraph: added verification that no characters not allowed in an IPv4 or IPv6 address are used