Only replaceSlashes for '[object String]'
Caused an error on Windows when 'order' contained a RegEx.