The replace of the '\' was only replacing the first one. Changed it to replace all '\'
Merge pull request #6 from chafnan/master

The replace of the '\' was only replacing the first one. Changed it to replace all '\'