catch exceptions on encode urls #www