add Filter and getting charset by itself but still have some bug on getting charset