Reproduce issue #314
Use six.text_type for rendering non-ascii content, close #314
Merge branch 'feature/fix-non-ascii-preview-314' into develop