Avoid undefined behaviour in short option parsing
The undefined behaviour lead to clashes / misinterpretation of short options on some systems. Note that glibc for example uses the argument of isalnum etc. as an index into a lookup table.
Fixes #29 (closed)