use proper formatting for url options