Switch illegal characters for legal ones
Inspired by the fs package's path_sanitize
function
db_path_sanitize(filename, replacement = "_")
filename
: the file or folder to sanitizereplacement
: what should the illegal character(s) be replaced with? (default: "_")the sanitized string
db_path_sanitize('this:string"has?issues')
Useful links