Added encoding to utf-8 in assertion