Changing the behaviour to enable handling URL safe base64 strings.

In some implementations, the '=' characters are omitted, leaving the size of the string inconsistent with the ( imax % 4 == 0 ) restriction.