[boost] use string algorithm without <locale> file