[FIX] small potential encoding issue in custom models