Added codepage support.