Bug 938702 - check for a valid encoding before creating an input stream in canvas code; r=smaug
Bug 941616 - fix jemalloc build for --enable-replace-malloc; r=ehsan