clang improvements for stringencoders