whitespace fixes
move encoding.js into libs