Add unicode string support to memstrings