Fixing URL resolution on surfproxy