Handle unescaping magic quotes

Fixes #4