Fixed issue #1802 - Object preview paths now work with %o_path

Properties are now escaped properly depending on whether they are in the path or query string. Slashes in the path are not escaped so that replacement of %o_path works.