fix #1422 : Internal encoding to UTF-8 by default