Normalize filenames coming into API to replace backslashes.

Add tests for backslashes in sourceRoot.
Does this have to be part of the public interface? Can it just be a local function instead?