for Java6, emulate subset of IETF BCP 47, fixed #474

for Java6, emulate subset of IETF BCP 47, fixed #474
For Java _context_ yes, but BCP 47 is naturally general-purpose and in this case, the context is HTML, which has little to do with Java legacy.