Fix some issues with long, whitespace-free text not wrapping properly (fix #151)