Ignore NULL bytes at flash end when reading