factored out UTF byte # recognition for later textual parsing