fix for charset, #482
fix for charset, #482
updated sample