Add more path separator and fix avatar uri error

* Add '-' like '/' as the path separator to avoid '/' confused the remote heads.
* Fix avatar uri error