SafeErubisTemplate fixes

A couple of fixes for recently reported bugs that could do with a second set of eyes cast over them before merging.

The first is fairly straightforward (return strings and not arrays). The second I’m less sure of (initializing the `@newline_pending` variable). Arguably the more correct fix for that might be in the Rails Erb handler itself.