Fixed newline bug in locale