Fix issue when building with Ant and system default encoding is not UTF-8