Manipulation: support data-URI scripts insertion

Fixes gh-1887
Closes gh-1888