Don't modify the given source string in place, fixes GH issue #40