Add encoding parameter to FileObject
Add a rescue in basic_auth to return 403
Add integration test for API endpoint