fix encoding declaration