allow spaces in the chunk header; closes #606
strip off possible chunk options in chunk headers for read_chunk()

eventually we should be able to just read chunk options as well