Read and pack raw header

This may be useful for #48 and provides a way around #55 until `max_buffer_size` is implemented.