fixed non-unicode string mutation for python3