Change encoding for Latch.php file