Fix for two bugs

1. Bitrate needs to be set to 0 on OUTPUT port of encoder otherwise
it doesnt pick up the frame rate on its input port when connected
2. Filename incorrectly copied without terminator when set.