Fix jinja unicode hack for inline if
Fix string_test
Add unittest for EnsureUnicodeExtension