don't copy parent string when serializing SubString. fixes #3646