base64_conv: changed code so program will work as a filter