Patch against 2.4 (Java build encoding errors)

The generated OpenCV Java source can contain characters outside of ASCII on some systems – this patch allows the ant task to compile them.

(Patch against OpenCV 2.4 branch, originally patched in f3ee55e04222deea30ffe4e89456c220bc75ff1a)