Verify encoding type is string