added getEscapedField(obj,name) that removes non-ascii characters