Fixed oddity where escapedFragment is sometimes an object convertable to string