fixed issue with urlencoding