URL normalization compatible with markdown-it link handling.
-spec normalize(binary()) -> binary().
-spec normalize_text(binary()) -> binary().