Function std::http_safe_join
int http_safe_join(
const &char root,
const &char url_path,
int allow_dotfiles,
&String out,
)Joins a URL path under 'root' after percent-decoding it and removing empty and "." segments; 0 (and 'out' untouched) if it contains a ".." segment, a backslash, a NUL byte or (unless allow_dotfiles) a segment starting with '.'.