more detailed logging, fix in not properly encoded URL