Taml Binary Writer fix (as posted by Cam Porter)