remove dead api
properly encode the url for preview requsts;