#994 Util.embed now splits multiline fragments

The pull request contains a util function to do the actual splitting of multline fragments and calls it from the Util.embed function.