improved handling of weird file names
Fixed invalid name handling in album list
Organizing source code