Corrected long value formatting and URI escaping.