public String decode(String value) {
        StringBuilder sb = new StringBuilder();
        if (value != null) {
            for (int i = 0; i < value.length(); i++) {
                char c = value.charAt(i);

                if (c == '\\') {
                    i++;
                    c = value.charAt(i);
                    if (c == 's') {
                        sb.append(' ');
                    } else if (c == 'e') {
                        sb.append('=');
                    } else if (c == '\\') {
                        sb.append('\\');
                    } else {
                        throw new RuntimeException("Unable to decode " + value);
                    }

                } else {
                    sb.append(c);
                }

            }
        }
        return sb.toString();
    }
Class that allows you to embed properties in a string. Used for some simple
stuff that is outside GWT (like data upload).
stroom-util-shared/src/main/java/stroom/util/shared/PropertyMap.java