I'm not sure if it'll work, but have you tried passing the bmap pointer or name as the parameter for str_for_entfile? It very well might work.