better readURL handling, support for urlencoding