safely get char value so we dont log errors