Attempted fix for ascii codec error