Only replaceSlashes/replaceBackSlashes for strings
Caused an error on Windows when 'order' contained a RegEx
Merge pull request #837 from dmoscrop/master

Only replaceSlashes for strings