beautify_urlpath breaks things