only utf8 in locale gen now
fixed typos, corrected if statements