fix the spec for the weird URI.encode issue