Close #1217 (Determine UTF8 locale automatically)