Fix python 3 problems with default rights

`BytesIO` can’t be initialized with a `str`: 

> TypeError: 'str' does not support the buffer interface


Happens when using a `owner_only` as rights type .