try/except import
encode