Double quotes => single quotes
Variable name array => arr
Clean up whitespace
Improve comments
Add tests
Encode recognizable characters in Unicode