Fix encoding
Add service layer for configuration management