WICKET-5717 Support fragment in Url parse and toString

(cherry picked from commit ca70ec70a0b7ea20f51db849ea866aa7c3d6cd11)