post encounters and fix URL paths