Did a systemwide replacement of str() with unicode(), since I found out that the former was encoding strings in ASCII, creating mixed encoding and a potential mess.
Fixed several bugs dealing with citation sortkeys. Also added test4 for the testing suite --- this is what led to finding the citekey sorting bugs. Also updated the testing suite with test4 files.