On ARM chars are unsigned

This code didn't worked on ARM, changing the table and parameters to int seems to work fine on any platform.
Merge pull request #641 from mingodad/patch-1

On ARM chars are unsigned