Manipulation: support data-URI scripts insertion

Fixes gh-1887