Fix Issue #621

use ascii or utf-8 as appropriate