Fix overflow using lcm with big integers.

Change-Id: Ie9d6febea53e5b061ff8ca649dc404bcfb29060b
* chartooem() and oemtochar() removed.

Change-Id: I6a27ca1ff4c37dc952021d0812799de14961d90e