fixed encoding (thanks andries)