Generate non-const transcode tables

Fixes segfault when we modify them on later versions of gcc.
Fix regex to work with non-const transcode table