changed some ascii encoding/decoding to utf-8 in get_stats, and also get_slabs for consistency