Re-added input encoding for ->load()