fix word-breaking in right-to-left mode