Finalize and ensure proper encoding with encoding module