Getting rid of trailing slashes from the github OAuth2 redirect URI