added enc attr_accessor for MapPath