fixed #23 render preview encoding