hls: fix urls with ? at the end