instead of doing the conversion logic twice, I would remove the ``HTTP-`` replacement from there only, and the existing logic will work without change