+
+sub pretty_escape {
+ my $value = shift;
+
+ $value = URI::Escape::uri_escape($value);
+
+ # Unescape a few for prettiness (we'll need something for a real _, though)
+ $value =~ s/%20/_/g;
+ $value =~ s/%2F/\//g;
+
+ return $value;
+}
+
+sub pretty_unescape {
+ my $value = shift;
+
+ # URI unescaping is already done for us
+ $value =~ s/_/ /g;
+
+ return $value;
+}