(re #88) fix problems with sending a notification for things that have unicode in them
(re #88) use proper type detection in POST_notify