Encoding fix + fraction fix