Fixed backslash parsing

The format function does not parsed the backslashes correctly on inputs like .format('H:i\\\\\\s')
The old method returned something like "16:32\\s", the correct should be "16:32\s".