Edit book: Fix incorrect syntax highlighting on linux if the text contains non-BMP unicode characters.