add safety around un-repr-able and un-unicode-able values