Fix encoding in MagicNode
Add test for title with space and fix failing tests