Replace implementation of UILineBreakModeWordWrap with a version which handles whitespace correctly