Changed escaping from backslash to quotes (works in all 3 platforms instead of 2), moved the backslash escape to seperate static method and made it simple