Python Url Safe String Functions In Cpp