Trying to fix a codepage bug