Fix file download/request functionality by converting URLs from unicode to bytes.