Ensure NULL is returned when there is no character encoding at all whatsoever