Fix bidirectional text handling (issue #36).