improve routing and create urlencoding formatter