Do not assert when setting internal string encoding