Expand pbc_write to accept content type