Fix a path-escaping bug with replication

Regression from the initial BrowserID patch (649d14f)