use decode_entities(), add versioning of the plugin, proper file suffix

during Nigel Taylor's review he proposed several patches
- use more advanced decode_entities() instead of s/// for one case
- add versioning to module (with this changed jumped to 0.02)
- set file suffix according to content