fix locale handling with blank strings