Only replaceSlashes for strings
Caused an error on Windows when 'order' contained a RegEx