[BUG] Fix parameter encoding in url.

Fix encoding parameter for namespace usage in projects, and a fix for wrong url generation in case of reverse proxified gitlab.