Fix bug in StringTransformer that was not propagating the Rewrite event