Normalize filenames coming into API to replace backslashes.

Add tests for backslashes in sourceRoot.
Still feels ugly to me. I think I would even prefer code duplication to this.