fixed minor issues regarding string manipulation of complex hypermedia links