encode in UTF-8 to prevent from encoding errors