Actually I found in the docs, that stimulus_controller() helper function escapes all non-scalar values, thus it is better to declare values in a straight forward attribute style.
data-controller="url-manager"
data-url-manager-prototype-value="{{ form_row(prototype)|e('html_attr') }}"