fix for pageurls with spaces