Escape all public_ids including non-http ones.
Fix handling of boolean parameters on upload