set encoding to ASCII, a la gopher
clean up example server
better trimming of URL