I don't think it likes your "\n". Perhaps it's treating it as an escape character.