adding encoding to fix non-ascii character error