Fixed urlencoding bug