Fix bug with stripping special characters from variable names.
Use different temp. variable names for length variables.
Simplify ffi string conversion logic.