added gsub statements to change backslashes into regular slashes to prevent encoding problems