explicitly pass char encoding