switched lineBreakUtf8()’s char arithmetic types back to int. init vars on separate lines.
pass in std::function as const& for consistency