fix coding of MEDIA_ROOT