Fallback to utf-8 if value is None

Fix issue #11