handle when charset is not specified