ignore boundary if not found, exported more util functions

Hi,

We encountered a server in the wild that does not return a boundary, so we just added a check.

We also exported some function from utils we need.

Thanks,