fix non-public getCode; UTF-8 source encoding