Fix problem of generating wrong path, e.g https://demo.firebaseio.comusers

**Problem:** with the old implementation, the `site` must be end with `/` otherwise it will generate a wrong URL.