Fix encoding error for (c) sign
Fix test of deprecation warning