fixing SECRET_KEY encode