Add enc method, fix url pathing issue