Buffer objects may not have startswith().