Fixed encoding error for non-windows machines.