Add new emotion::object_file_get function

Use string slice for emotion functions.