fix base64 conversion
skip directory level