added escape() method that returns String, not StringBuffer
made iriReplacements public; use new StringUtils.escape() method
make some fields private; fix Freebase URI escaping