add deprecated log function
add tests for UTF8 decoding and deprecated log function