Fixed encoding used while reading from database.