remove need for parsing static url twice to replace scheme
centralize and properly escape query string and anchor arguments