Add special character decode function

Close #3