fix getting service details when current lang is not present on database
fix encoding metadata writer on non unix platform