Fixes StringIndexOutOfBoundsException when using StringUtils.toLabel with words that have underscores in them.