use codecs.open for better encoding handling, closes #7
remove decoding from markdown filter, use the native input string to avoid double encodings, closes #11