Better check of value for non-binary characters