diff --git a/api/funkwhale_api/music/views.py b/api/funkwhale_api/music/views.py
index 98274e741293f6ef9b4b9cf9ce5f59e32eb8815f..14900ca98809c1520a582a041286c63be672b1a7 100644
--- a/api/funkwhale_api/music/views.py
+++ b/api/funkwhale_api/music/views.py
@@ -230,7 +230,7 @@ def get_file_path(audio_file):
                     'MUSIC_DIRECTORY_PATH to serve in-place imported files'
                 )
             path = '/music' + audio_file.replace(prefix, '', 1)
-        return settings.PROTECT_FILES_PATH + path
+        return (settings.PROTECT_FILES_PATH + path).encode('utf-8')
     if t == 'apache2':
         try:
             path = audio_file.path