test encode URL