added 'try' to fix broken encoding