Fix typo in encoding and use single quoted string