#157 Issue: Exception thrown when open editor with encoded chars