revert startsWith fixes, as some code was relying on sending in the
empty string for URI fields
do check for default value before encoding
shorten the text to match for determining a freemarker error