Change header/footer to bytes objects.