Fix magic quotes in default rule action

Also reorganise source a little, and add a newline at the end of the
default rule