argh left a bug in there :(, now correctly detecting whether character range needs to be increased