Fix encoding related issues in "colour.io.xrite" module.